package com.ocom.company.feign;



import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.entity.access.EntityMjRegionInfo;
import com.ocom.common.request.human.GetMjRegionByIdsRequest;
import com.ocom.common.resp.Result;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@Component
@FeignClient(value = "access")
public interface AccessClient {

    /**
     * 初始化单位门禁参数
     * */
    @PostMapping(AccessServiceUrl.URL_InitCompanyPara)
    Result InitCompanyPara(@RequestParam("comId") Long comId,@RequestParam("pId") Long pId,@RequestParam("companyId") Long companyId);

    @PostMapping(AccessServiceUrl.URL_getMjRegionInfo)
    public Result<EntityMjRegionInfo> getMjRegionInfo(@RequestBody EntityMjRegionInfo entityMjRegionInfo);

    @PostMapping(AccessServiceUrl.URL_getMjRegionByIds)
    public Result<List<EntityMjRegionInfo>> getMjRegionByIds(@RequestBody GetMjRegionByIdsRequest request);
}